﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dune.Common.TextTemplates
{
    public interface ITextEngine
    {

        string Render(string tmplName, IDictionary<string, object> contextObjects, IServiceProvider serviceProvider);

        string Render(string tmplName, IDictionary<string, object> contextObjects);

        ICollection<TemplateParametrInfo> GetTemplateParameters(string tmplName);

        ICollection<string> GetTemplates();

        // TODO add method prepare for checking temlate in desing, validation time

    }
}
